home *** CD-ROM | disk | FTP | other *** search
- | > InjectNews
- |
- | Syntax: InjectNews <NewsServerAddress> <Filename>
- |
- | InjectNews will queue the specified file for posting to News via the
- | specified NewsServer. It performs no error checking on the file, and
- | assumes that the file contains a valid header.
- |
- | This version of InjectNews produces compressed batches of news, but
- | needs a lot of RAM to run in.
-
- | Ensure enough memory for compress to run
- Wimpslot -min 488k
-
- | Save old debug level, set current debug level to -1
- Set OldDebug <Rucp$Debuglevel>
- Set Rucp$Debuglevel -1
-
- | Generate news batch
- Set Inject$File %1
- Run <ReadNews$Dir>.Library.SetupPost
- Unset Inject$File
- Print %1 { >> %1A }
- Remove %1
-
- | Compress batch
- Unx_Compr -b 12 %1A
- Remove %1A
- Print %1A_Z { >> %1B }
- Remove %1A_Z
-
- | Execute 'rnews' on this file at remote end.
- Uux - %0!rnews <%1B
- | and tidy up.
- Remove %1B
-
- | Restore previous debug level
- Set Rucp$Debuglevel <OldDebug>
- Unset OldDebug
-